gtk4.git
5 years agoFix gtk4-demo’s gears demo on OpenGL ES
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 00:21:08 +0000 (01:21 +0100)]
Fix gtk4-demo’s gears demo on OpenGL ES

Here is a command to reproduce this testcase:
GDK_DEBUG=gl-gles gtk4-demo --run gears

Without this patch, Mesa throws this compile error:
0:130(13): error: no matching function for call to `mod(error, float)'; candidates are:

This is caused by `u_rotation - 90` being of type error since
`u_rotation` is a float and it’s illegal to subtract it with an integer.

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Matthias Clasen [Thu, 24 Dec 2020 07:13:22 +0000 (07:13 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!2997

5 years agogdkarray: Add a "stolen" boolean to splice()
Benjamin Otte [Wed, 23 Dec 2020 19:04:29 +0000 (20:04 +0100)]
gdkarray: Add a "stolen" boolean to splice()

If set to TRUE, does not call the free func for the removed items.

This can be used to move items between arrays without having to do the
refcounting dance.

5 years agolistview: Use the correct scroll policy
Benjamin Otte [Tue, 24 Nov 2020 13:19:06 +0000 (14:19 +0100)]
listview: Use the correct scroll policy

Use the horizontal policy for horizontal decisions, not the vertical
one.

This broke in 0011ce949c3580e02c4b2c3d83584a6c6e82090c.

5 years agodocs: Put render nodes in their own sections
Benjamin Otte [Wed, 25 Nov 2020 14:49:58 +0000 (15:49 +0100)]
docs: Put render nodes in their own sections

5 years agoroundedbox: Remove unused API
Benjamin Otte [Wed, 2 Dec 2020 07:50:16 +0000 (08:50 +0100)]
roundedbox: Remove unused API

5 years agopicture: Fix copy/paste error in docs
Benjamin Otte [Tue, 15 Dec 2020 23:26:16 +0000 (00:26 +0100)]
picture: Fix copy/paste error in docs

5 years agovideo: When autoplaying, start playing once the video is prepared
Benjamin Otte [Wed, 16 Dec 2020 01:22:26 +0000 (02:22 +0100)]
video: When autoplaying, start playing once the video is prepared

This fixe video sources with longer loading times not automatically
playing.

5 years agogtk-demo: Don't put the search bar in the scroll area
Benjamin Otte [Thu, 17 Dec 2020 21:20:17 +0000 (22:20 +0100)]
gtk-demo: Don't put the search bar in the scroll area

1. That's a bad idea UI wise as you can't see the search after you
   scrolled.

2. That's a bad idea code-wise because Listviews need to be put into
   a ScrolledWindow or they won't scroll.

5 years agorendernode: Bail if matrix is invalid
Benjamin Otte [Thu, 24 Dec 2020 05:32:17 +0000 (06:32 +0100)]
rendernode: Bail if matrix is invalid

Invalid matrices are okay in GSK (and GL), but not in Cairo.

Testcase included.

5 years agoUpdate Punjabi translation
A S Alam [Wed, 23 Dec 2020 19:48:28 +0000 (19:48 +0000)]
Update Punjabi translation

5 years agoUpdate Persian translation
Danial Behzadi [Wed, 23 Dec 2020 15:53:07 +0000 (15:53 +0000)]
Update Persian translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 23 Dec 2020 03:01:55 +0000 (03:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

window: Release application in destroy

See merge request GNOME/gtk!2994

5 years agowindow: Release application in destroy
Matthias Clasen [Wed, 23 Dec 2020 01:34:13 +0000 (20:34 -0500)]
window: Release application in destroy

We used to do this; it was lost in some life-cycle
reshuffling.

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Tue, 22 Dec 2020 04:53:31 +0000 (04:53 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!2990

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 22 Dec 2020 02:29:03 +0000 (02:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2988

5 years agoFix warnings with Vulkan < 162
Matthias Clasen [Mon, 21 Dec 2020 23:04:16 +0000 (18:04 -0500)]
Fix warnings with Vulkan < 162

Tiring to watch the Vulkan people stumble through
ABI and API compat, but what can you do.

5 years agoMerge branch 'mcatanzaro/fix-gtk-builder-tool' into 'master'
Matthias Clasen [Mon, 21 Dec 2020 22:49:42 +0000 (22:49 +0000)]
Merge branch 'mcatanzaro/fix-gtk-builder-tool' into 'master'

Fix buffer overruns in 'gtk-builder-tool simplify'

See merge request GNOME/gtk!2987

5 years agomodelbutton: Remove an unused field
Matthias Clasen [Mon, 21 Dec 2020 22:43:29 +0000 (17:43 -0500)]
modelbutton: Remove an unused field

We're not using the centered field anymore.

5 years agoFix buffer overruns in 'gtk-builder-tool simplify'
Michael Catanzaro [Mon, 21 Dec 2020 21:35:51 +0000 (15:35 -0600)]
Fix buffer overruns in 'gtk-builder-tool simplify'

Oops, here we allocate only one byte for each pointer we want to store.
We need to multiply by the size of a pointer.

5 years agoMerge branch 'fix-printbackends' into 'master'
Emmanuele Bassi [Mon, 21 Dec 2020 20:04:26 +0000 (20:04 +0000)]
Merge branch 'fix-printbackends' into 'master'

Fix the value for the print-backends setting

Closes #3486

See merge request GNOME/gtk!2986

5 years agoMerge branch 'ebassi/docs-for-master' into 'master'
Matthias Clasen [Mon, 21 Dec 2020 19:22:38 +0000 (19:22 +0000)]
Merge branch 'ebassi/docs-for-master' into 'master'

Ebassi/docs for master

See merge request GNOME/gtk!2983

5 years agoFix the value for the print-backends setting
Matthias Clasen [Mon, 21 Dec 2020 19:10:03 +0000 (14:10 -0500)]
Fix the value for the print-backends setting

This was broken in the meson conversion, causing
us to default to "" instead of the built print
backends.

Fixes: #3486
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 21 Dec 2020 19:00:10 +0000 (19:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2984

5 years agoinspector: Show glyphs as in node files
Matthias Clasen [Mon, 21 Dec 2020 18:11:46 +0000 (13:11 -0500)]
inspector: Show glyphs as in node files

Reuse the glyph serialization code from gsk to
show glyphs in the same way here.

5 years agogsk: Export the glyph serialization privately
Matthias Clasen [Mon, 21 Dec 2020 18:11:08 +0000 (13:11 -0500)]
gsk: Export the glyph serialization privately

We want to use the same serialization in the inspector,
so export this function.

5 years agogsk: Improve glyph serialization
Matthias Clasen [Mon, 21 Dec 2020 18:08:34 +0000 (13:08 -0500)]
gsk: Improve glyph serialization

The special case for ASCII glyphs is unfortunately not
working very well, because of an oversight in pango:
When I added subpixel positioning, I made pango_shape()
default to not rounding, and make PangoLayout call
pango_shape_with_flags() and pass the rounding information
down. The upshot is that we need to use the _with_flags
variant here and tell it to round position, so it matches
what the text node contains.

5 years agoMerge branch 'fix-node-glyphs' into 'master'
Timm Bäder [Mon, 21 Dec 2020 17:16:38 +0000 (17:16 +0000)]
Merge branch 'fix-node-glyphs' into 'master'

gsk: Fix serialization of glyphs

Closes #3496

See merge request GNOME/gtk!2982

5 years agodocs: Add examples for GtkDropTarget
Emmanuele Bassi [Mon, 21 Dec 2020 17:11:42 +0000 (17:11 +0000)]
docs: Add examples for GtkDropTarget

Like we did for GtkDragSource.

5 years agodocs: Add examples of GtkDragSource use
Emmanuele Bassi [Mon, 21 Dec 2020 17:03:59 +0000 (17:03 +0000)]
docs: Add examples of GtkDragSource use

The description is a bit terse; we should help out application
developers some more.

5 years agodocs: Fix typo and whitespace
Emmanuele Bassi [Mon, 21 Dec 2020 17:03:42 +0000 (17:03 +0000)]
docs: Fix typo and whitespace

5 years agogsk: Fix serialization of glyphs
Matthias Clasen [Mon, 21 Dec 2020 15:46:59 +0000 (10:46 -0500)]
gsk: Fix serialization of glyphs

We were forgetting to put a space between two numbers
in some cases, confusing the parser.

Test included.

Fixes: #3496
5 years agoMerge branch 'box_docs' into 'master'
Emmanuele Bassi [Mon, 21 Dec 2020 15:40:07 +0000 (15:40 +0000)]
Merge branch 'box_docs' into 'master'

box: improve documentation

Closes #3499

See merge request GNOME/gtk!2981

5 years agobox: improve documentation
Yetizone [Mon, 21 Dec 2020 14:42:01 +0000 (16:42 +0200)]
box: improve documentation

Rephrase a function parameter description and remove "." from all function parameters descriptions

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3499

5 years agogskpango: Don't copy fg color
Timm Bäder [Mon, 21 Dec 2020 14:23:25 +0000 (15:23 +0100)]
gskpango: Don't copy fg color

No need to do that here, we copy it in to the individual render nodes
anyway.

5 years agogl renderer: Check for pointer equality in rounded_rect_equal
Timm Bäder [Mon, 21 Dec 2020 13:13:48 +0000 (14:13 +0100)]
gl renderer: Check for pointer equality in rounded_rect_equal

5 years agogskpango: Correct a comment
Timm Bäder [Mon, 21 Dec 2020 12:23:28 +0000 (13:23 +0100)]
gskpango: Correct a comment

Not all other draw calls will use cairo.

5 years agogskpango: Remove bounds rect
Timm Bäder [Mon, 21 Dec 2020 11:56:38 +0000 (12:56 +0100)]
gskpango: Remove bounds rect

We only need this to render shapes and trapezoids, i.e. only when
falling back to cairo. Remove code to measure the layout and convert the
ink_rect to a graphene_rect_t from gtk_snapshot_append_layout() and do
it when drawing shapes and trapezoids instead.

5 years agogskpango: Fix a potential cairo_t leak
Timm Bäder [Mon, 21 Dec 2020 11:49:06 +0000 (12:49 +0100)]
gskpango: Fix a potential cairo_t leak

The previous early return did not cairo_destroy() it.

5 years agolabel: Refactor get_layout_location()
Timm Bäder [Mon, 21 Dec 2020 11:44:01 +0000 (12:44 +0100)]
label: Refactor get_layout_location()

Rename a few local variables to be clearer about whether they belong to
the widget or to the layout.

Remove a workaround for an old bug that is no longer valid. We don't
underallocate the layout anymore. Aways center vertically, with respect
to the yalign.

5 years agolabel: Refactor snapshot()
Timm Bäder [Mon, 21 Dec 2020 11:26:22 +0000 (12:26 +0100)]
label: Refactor snapshot()

Use two early-out style if statements to reduce indentation in this
entire function.

5 years agotextlayout: Remove dead offset_y code
Timm Bäder [Mon, 21 Dec 2020 09:21:24 +0000 (10:21 +0100)]
textlayout: Remove dead offset_y code

5 years agorendernode: Different uniformity in border nodes
Timm Bäder [Mon, 21 Dec 2020 08:56:58 +0000 (09:56 +0100)]
rendernode: Different uniformity in border nodes

Means they are different and a diff is impossible.

5 years agorendernode: Sort diff() requirements by complexity
Timm Bäder [Mon, 21 Dec 2020 08:56:19 +0000 (09:56 +0100)]
rendernode: Sort diff() requirements by complexity

5 years agorenderborder: Avoid 0 width outline color nodes
Timm Bäder [Mon, 21 Dec 2020 08:28:26 +0000 (09:28 +0100)]
renderborder: Avoid 0 width outline color nodes

5 years agolayoutoverlay: Avoid adding transparent color nodes
Timm Bäder [Mon, 21 Dec 2020 07:34:25 +0000 (08:34 +0100)]
layoutoverlay: Avoid adding transparent color nodes

We have a region for the border here, but the color is defined as
transparent black because we don't want to render anything for it.

This way, the generated .node file for the listbox demo in gtk4-demo
with enabled layout borders is 3.5MB instead of 3.8MB.

5 years agolayoutoverlay: Avoid adding 0 sized color nodes
Timm Bäder [Mon, 21 Dec 2020 07:30:51 +0000 (08:30 +0100)]
layoutoverlay: Avoid adding 0 sized color nodes

This way, the output node file of the listbox demo in gtk4-demo with
enabled layout borders is only 3.8MB instead of 12MB.

5 years agoGskTransform: Add nullable annotations to _equals()
Timm Bäder [Sun, 20 Dec 2020 20:22:15 +0000 (21:22 +0100)]
GskTransform: Add nullable annotations to _equals()

Both can be NULL here.

5 years agogl renderer: Proper state tracking for color matrix ops
Timm Bäder [Fri, 18 Dec 2020 17:28:17 +0000 (18:28 +0100)]
gl renderer: Proper state tracking for color matrix ops

5 years agogl renderer: Add missing debug output for repeat ops
Timm Bäder [Fri, 18 Dec 2020 17:13:28 +0000 (18:13 +0100)]
gl renderer: Add missing debug output for repeat ops

5 years agogl renderer: Create shader-global uniform ops on draw()
Timm Bäder [Fri, 18 Dec 2020 16:29:51 +0000 (17:29 +0100)]
gl renderer: Create shader-global uniform ops on draw()

This way we can render the first frame of tests/testoutsetshadowdrawing
in 153 ops instead of 183.

And the first frame of gtk4-demo in 260 instead of 300.

5 years agogl renderer: Unify new clip/viewport rects in blur_texture()
Timm Bäder [Fri, 18 Dec 2020 15:14:11 +0000 (16:14 +0100)]
gl renderer: Unify new clip/viewport rects in blur_texture()

5 years agoGskTransform: Fix identity transform class name
Timm Bäder [Fri, 18 Dec 2020 09:12:28 +0000 (10:12 +0100)]
GskTransform: Fix identity transform class name

5 years agoGskTransform: Avoid a ref+unref pair
Timm Bäder [Fri, 18 Dec 2020 09:10:56 +0000 (10:10 +0100)]
GskTransform: Avoid a ref+unref pair

If gsk_transform_is_identity() returned FALSE for the next transform,
the previous code did a ref + unref pair, even though it was unneeded.

5 years agoicontheme: Make some constant values const
Timm Bäder [Fri, 18 Dec 2020 07:36:59 +0000 (08:36 +0100)]
icontheme: Make some constant values const

5 years agopixbufutils: Only convert icon size to string once
Timm Bäder [Thu, 17 Dec 2020 18:29:16 +0000 (19:29 +0100)]
pixbufutils: Only convert icon size to string once

5 years agoicontheme: Make icon_paintable_ensure_texture() return an unowned value
Timm Bäder [Thu, 17 Dec 2020 17:45:47 +0000 (18:45 +0100)]
icontheme: Make icon_paintable_ensure_texture() return an unowned value

It's private, has only one caller and that one doesn't need the extra
ref.

5 years agogl renderer: Avoid setting modelview to identical values
Timm Bäder [Thu, 17 Dec 2020 16:24:31 +0000 (17:24 +0100)]
gl renderer: Avoid setting modelview to identical values

The previous comment here was incorrect. We can save the op itself, we
just can't save us the entry in the modelview stack.

5 years agomain: Add & use gdk_event_dup_axes()
Timm Bäder [Thu, 17 Dec 2020 15:32:31 +0000 (16:32 +0100)]
main: Add & use gdk_event_dup_axes()

The way this code is written trips up scan-build. Add
gdk_event_dup_axes() and use it in gtkmain.c.

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Mon, 21 Dec 2020 07:02:13 +0000 (07:02 +0000)]
Update Brazilian Portuguese translation

5 years agoMerge branch 'ebassi/issue-3495' into 'master'
Matthias Clasen [Sun, 20 Dec 2020 22:40:48 +0000 (22:40 +0000)]
Merge branch 'ebassi/issue-3495' into 'master'

Use full path when calling gtk4-update-icon-cache

Closes #3495

See merge request GNOME/gtk!2979

5 years agoCall the newly installed gtk4-update-icon-cache
Emmanuele Bassi [Sun, 20 Dec 2020 16:33:41 +0000 (16:33 +0000)]
Call the newly installed gtk4-update-icon-cache

Otherwise we rely on whatever it's inside the PATH.

5 years agoPass the bindir to the post-install script
Emmanuele Bassi [Sun, 20 Dec 2020 16:33:25 +0000 (16:33 +0000)]
Pass the bindir to the post-install script

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sun, 20 Dec 2020 14:06:52 +0000 (14:06 +0000)]
Update Brazilian Portuguese translation

5 years agoUpdate Japanese translation
sicklylife [Sun, 20 Dec 2020 08:03:00 +0000 (08:03 +0000)]
Update Japanese translation

5 years agoUpdate Japanese translation
sicklylife [Sun, 20 Dec 2020 07:58:09 +0000 (07:58 +0000)]
Update Japanese translation

5 years agoUpdate Punjabi translation
A S Alam [Sun, 20 Dec 2020 06:14:42 +0000 (06:14 +0000)]
Update Punjabi translation

5 years agoUpdate Catalan translation
Jordi Mas i Hernandez [Sat, 19 Dec 2020 18:29:08 +0000 (18:29 +0000)]
Update Catalan translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Dec 2020 17:20:39 +0000 (17:20 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2978

5 years agoRevert "gl renderer: Render too big textures to the clipped area"
Matthias Clasen [Sat, 19 Dec 2020 16:43:56 +0000 (11:43 -0500)]
Revert "gl renderer: Render too big textures to the clipped area"

This reverts commit 7f6608cbedccfe8a9e7d9a211f33be15951ca144.

5 years agoRevert "gl renderer: Take a out graphene_rect in blur_node()"
Matthias Clasen [Sat, 19 Dec 2020 16:43:43 +0000 (11:43 -0500)]
Revert "gl renderer: Take a out graphene_rect in blur_node()"

This reverts commit 7eece7e7690326e99d47e20e4a23a406bbd85779.

5 years agoMerge branch 'ebassi/issue-3492' into 'master'
Matthias Clasen [Sat, 19 Dec 2020 16:41:14 +0000 (16:41 +0000)]
Merge branch 'ebassi/issue-3492' into 'master'

3to4: Remove GtkCheckButton:draw-indicator

Closes #3492

See merge request GNOME/gtk!2976

5 years ago3to4: Add test for GtkCheckButton:draw-indicator removal
Emmanuele Bassi [Sat, 19 Dec 2020 15:52:22 +0000 (15:52 +0000)]
3to4: Add test for GtkCheckButton:draw-indicator removal

5 years ago3to4: Remove GtkCheckButton:draw-indicator
Emmanuele Bassi [Fri, 18 Dec 2020 23:14:24 +0000 (23:14 +0000)]
3to4: Remove GtkCheckButton:draw-indicator

The property was removed from the widget, so we need to remove it from
UI files too.

Fixes: #3492
5 years agoMerge branch 'doc_backticks' into 'master'
Timm Bäder [Fri, 18 Dec 2020 15:57:30 +0000 (15:57 +0000)]
Merge branch 'doc_backticks' into 'master'

docs: backtick fixes

See merge request GNOME/gtk!2975

5 years agodocs: backtick fixes
wisp3rwind [Fri, 18 Dec 2020 15:28:35 +0000 (16:28 +0100)]
docs: backtick fixes

- in the gettext() examples, at least the _() triggers italics
- add missing closing backtick

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Fri, 18 Dec 2020 05:06:35 +0000 (05:06 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!2973

5 years agoMerge branch 'ebassi/mnemonic-label-remove' into 'master'
Matthias Clasen [Fri, 18 Dec 2020 00:00:48 +0000 (00:00 +0000)]
Merge branch 'ebassi/mnemonic-label-remove' into 'master'

a11y: Fix removing mnemonic widgets

See merge request GNOME/gtk!2970

5 years agoMerge branch 'ebassi/docs-for-master' into 'master'
Matthias Clasen [Thu, 17 Dec 2020 23:59:41 +0000 (23:59 +0000)]
Merge branch 'ebassi/docs-for-master' into 'master'

Ebassi/docs for master

See merge request GNOME/gtk!2971

5 years agoDo not build gdk-pixbuf's man page
Emmanuele Bassi [Thu, 17 Dec 2020 20:50:16 +0000 (20:50 +0000)]
Do not build gdk-pixbuf's man page

When using it as a sub-project. We don't really need them.

5 years agoMerge branch 'shortcuts' into 'master'
Matthias Clasen [Thu, 17 Dec 2020 19:43:38 +0000 (19:43 +0000)]
Merge branch 'shortcuts' into 'master'

docs: Add separation between kinds of shortcuts in Keyboard input

See merge request GNOME/gtk!2964

5 years agodocs: Fix list of kinds of shortcuts in Keyboard input
Chris Mayo [Thu, 17 Dec 2020 19:18:10 +0000 (19:18 +0000)]
docs: Fix list of kinds of shortcuts in Keyboard input

Formatting in HTML was mangled.

5 years agodocs: Add missing GTK types
Emmanuele Bassi [Thu, 17 Dec 2020 18:30:19 +0000 (18:30 +0000)]
docs: Add missing GTK types

If we don't specify the get_type() function, gtk-doc will not collect
properties and signals, and will use a different URL for the page.

5 years agoMerge branch 'ebassi/password-entry-notify' into 'master'
Emmanuele Bassi [Thu, 17 Dec 2020 15:51:04 +0000 (15:51 +0000)]
Merge branch 'ebassi/password-entry-notify' into 'master'

Notify properties on deletion in PasswordEntryBuffer

Closes #3484

See merge request GNOME/gtk!2969

5 years agoa11y: Fix removing mnemonic widgets
Emmanuele Bassi [Thu, 17 Dec 2020 15:49:00 +0000 (15:49 +0000)]
a11y: Fix removing mnemonic widgets

We must not use the variadic arguments version with GList, as it expects
a pointer to a GtkAccessible.

5 years agodocs: Note the caveat on GtkEditable signals with delegates
Emmanuele Bassi [Thu, 17 Dec 2020 15:13:43 +0000 (15:13 +0000)]
docs: Note the caveat on GtkEditable signals with delegates

We cannot bubble up ::insert-text and ::delete-text signals from the
delegate to the wrapper editable without causing an infinite recursion,
due to how the signals are designed; ideally, we would have decoupled
signal emission from virtual functions *before* releasing GTK4, but now
that we have, we can't break the contract.

5 years agoNotify properties on deletion in PasswordEntryBuffer
Emmanuele Bassi [Thu, 17 Dec 2020 15:01:35 +0000 (15:01 +0000)]
Notify properties on deletion in PasswordEntryBuffer

The GtkEntryBufferClass.deleted_text() behaviour changed between GTK3
and GTK4, which means any subclass of GtkEntryBuffer is now responsible
for emitting the "notify" signal for the "text" and "length" properties.

Without this, the GtkText delegate widget used by GtkPasswordEntry would
not be able to communicate changes in the contents of its buffer.

Fixes: #3484
5 years agoMerge branch 'issue-3483' into 'master'
Emmanuele Bassi [Thu, 17 Dec 2020 13:47:01 +0000 (13:47 +0000)]
Merge branch 'issue-3483' into 'master'

Fix URLs for the download.gnome.org locations

Closes #3483

See merge request GNOME/gtk!2968

5 years agoMerge branch 'wip/jimmac/flat-button-tweaks' into 'master'
Matthias Clasen [Thu, 17 Dec 2020 12:52:22 +0000 (12:52 +0000)]
Merge branch 'wip/jimmac/flat-button-tweaks' into 'master'

Adwaita: flat button adjustments

See merge request GNOME/gtk!2967

5 years agoFix URLs for the download.gnome.org locations
Emmanuele Bassi [Thu, 17 Dec 2020 12:46:12 +0000 (12:46 +0000)]
Fix URLs for the download.gnome.org locations

Use a trailing slash, otherwise we end up on an out of date mirror.

Fixes: #3483
5 years agoAdwaita: flat button adjustments
Jakub Steiner [Thu, 17 Dec 2020 10:19:46 +0000 (11:19 +0100)]
Adwaita: flat button adjustments

- normally lighter (on bg_color)
- darker for headerbar
- undecorated checked buttons were never style properly (even gtk3)
  see page2 volume buttons

Finetunes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427

5 years agoMerge branch 'cursor-aspect-ratio' into 'master'
Matthias Clasen [Wed, 16 Dec 2020 23:40:26 +0000 (23:40 +0000)]
Merge branch 'cursor-aspect-ratio' into 'master'

Cursor aspect ratio fixes for gtk 4

Closes #3441

See merge request GNOME/gtk!2966

5 years agosettings: Change gtk-cursor-aspect-ratio from float to double
Sebastian Keller [Wed, 16 Dec 2020 19:57:31 +0000 (20:57 +0100)]
settings: Change gtk-cursor-aspect-ratio from float to double

Float properties can not be read from keyfiles. This was causing changes
to this property in settings.ini to be ignored. Fix this by changing it
to a double.

Technically this change could be considered an API break, but there are
no users of this property as float yet and it is early enough to expect
there to never be any.

Also document this change in the 3 to 4 migration guide since in gtk 3
this setting will be kept a float.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3441

5 years agoMerge branch 'fix-macos-compilation' into 'master'
Emmanuele Bassi [Wed, 16 Dec 2020 20:18:27 +0000 (20:18 +0000)]
Merge branch 'fix-macos-compilation' into 'master'

macos: fix typo that breaks compilation

See merge request GNOME/gtk!2962

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Wed, 16 Dec 2020 19:56:16 +0000 (19:56 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gdk/x11: Transform XI_Motion based scroll into discrete

Closes #3459

See merge request GNOME/gtk!2959

5 years agoMerge branch 'ricotz/for-master' into 'master'
Emmanuele Bassi [Wed, 16 Dec 2020 19:46:51 +0000 (19:46 +0000)]
Merge branch 'ricotz/for-master' into 'master'

gdk: Use correct parameter name to fix g-ir-scanner warning

See merge request GNOME/gtk!2963

5 years agogdk: Use correct parameter name to fix g-ir-scanner warning
Rico Tzschichholz [Wed, 16 Dec 2020 19:19:05 +0000 (20:19 +0100)]
gdk: Use correct parameter name to fix g-ir-scanner warning

../gdk/gdktoplevellayout.c:217: Warning: Gdk: gdk_toplevel_layout_get_maximized:
  unknown parameter 'maximized' in documentation comment, should be 'maximize'

5 years agomacos: fix typo that breaks compilation
Tom Schoonjans [Wed, 16 Dec 2020 19:16:19 +0000 (19:16 +0000)]
macos: fix typo that breaks compilation

5 years ago4.0
Matthias Clasen [Wed, 16 Dec 2020 16:42:33 +0000 (11:42 -0500)]
4.0

5 years agoUpdate expected test results
Matthias Clasen [Wed, 16 Dec 2020 17:00:53 +0000 (12:00 -0500)]
Update expected test results

We have one test that expected 3.99 to show up in an error message.